package vis.manage;


import cn.dev33.satoken.SaManager;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.boot.web.context.WebServerInitializedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Configuration;

/**
 * 项目启动完成监听
 */
@Slf4j
@Configuration
public class WebListener implements ApplicationListener<WebServerInitializedEvent> {
    @Override
    public void onApplicationEvent(@NotNull WebServerInitializedEvent webServerInitializedEvent) {
        System.out.println("项目启动完成监听");
        System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());
    }

}
